package com.vonzhou.springinaction.knights;

public class BraveKnight implements Knight {
	private Quest quest;

	public BraveKnight(Quest quest) {
		// Quest通过构造函数被注入进来
		this.quest = quest;
	}

	@Override
	public void embarkOnQuest() throws QuestException {
		quest.embark();
	}
}
